package cn.cdm.dao;

import cn.cdm.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;


public interface MiaoshaUserDao {
	// 通过手机号来获取秒杀用户的信息
	@Select("select * from miaosha_user where id = #{id}")
	MiaoshaUser getById(@Param("id") long id);

	@Update("update miaosha_user set password=#{password}  where id=#{id} ")
	void update(MiaoshaUser toBeUpdate);



}
